var createRegistrationForm=function(){
	
	var textAreaName=new Ext.form.TextField({
		xtype     : 'textfield',
		id        : 'name',
		fieldLabel: 'Name',
		allowBlank: false
	});
	
	var textAreaLastName=new Ext.form.TextField({
		xtype     : 'textfield',
		id        : 'last name',
		fieldLabel: 'Last Name',
		allowBlank: false
	});
	
	var textAreaCompanyName=new Ext.form.TextField({
		xtype     : 'textfield',
		id        : 'company_name',
		fieldLabel: 'Company Name',
		allowBlank: false
	});
	
	var textAreaPassword=new Ext.form.TextField({
		xtype     : 'textfield',
		id        : 'password',
		fieldLabel: 'Password',
		allowBlank: false
	});
	
	aItems=[textAreaName,textAreaLastName,textAreaCompanyName,textAreaPassword]
	
	var form=new Ext.form.FormPanel({
		// baseCls: 'x-plain',
		 id:'formID',
		 frame:true,
	     labelWidth: 75,		       
	     defaultType: 'textfield',
	     items: aItems
	});
	
	var myWin=new Ext.Window({
		title:'Registration form',
		xtype:'textfield',
		height:200,
		width:400,
		layout:'form',
		bodyStyle:'padding:10px;',
		labelWidth:50,
		items:form
	});
	myWin.show();
};